PROJECTENGRAM

[REV] CSINTSY COMPREHENSIVE FINALS REVIEWER

Tags: #◇Computer Science #◇CSINTSY #◇Artificial Intelligence #◇Machine Learning #◇Reviewer #◇Finals


CSINTSY Comprehensive Finals Reviewer

◇Overview

This reviewer consolidates Introduction to Artificial Intelligence (CSINTSY). Core subjects encompass intelligent agents (PEAS, agent environments), uninformed search (BFS, DFS, Uniform Cost Search), informed search (Greedy Best-First, A* Search, heuristic admissibility and consistency), adversarial game search (Minimax, Alpha-Beta pruning), Markov Decision Processes (MDPs, Value Iteration), and machine learning models (Decision Trees with ID3/Entropy/Information Gain, K-Means Clustering, Neural Networks).


◇1. Search Algorithms Master Matrix

AlgorithmFrontier / QueueCompletenessTime ComplexitySpace ComplexityOptimality
BFSFIFO QueueYes (if b<∞b < \infty)O(bd)O(b^d)O(bd)O(b^d) (memory-bound)Yes (if step cost c=1c=1)
DFSLIFO StackNo (in infinite spaces)O(bm)O(b^m)O(bm)O(b m) (space-efficient)No
Uniform Cost (UCS)Priority Queue by g(n)g(n)Yes (if step cost ≥ϵ>0\ge \epsilon > 0)O(b1+⌊C∗/ϵ⌋)O(b^{1 + \lfloor C^* / \epsilon \rfloor})O(b1+⌊C∗/ϵ⌋)O(b^{1 + \lfloor C^* / \epsilon \rfloor})Yes (lowest cost path)
Greedy Best-FirstPriority Queue by h(n)h(n)No (can get stuck in loops)O(bm)O(b^m)O(bm)O(b^m)No
A Search*Priority Queue by f(n)=g(n)+h(n)f(n) = g(n) + h(n)YesO(bd)O(b^d)O(bd)O(b^d)Yes (if hh is admissible/consistent)

Heuristic Properties for A*

  • Admissibility: h(n)≤h∗(n)h(n) \le h^*(n) for all nn (never overestimates the true remaining cost to the goal). Guarantees optimality in tree search.
  • Consistency (Monotonicity): h(n)≤c(n,a,n′)+h(n′)h(n) \le c(n, a, n') + h(n'). Satisfies triangle inequality. Guarantees optimality in graph search without re-opening closed nodes!

◇2. Adversarial Search: Alpha-Beta Pruning Rules

  • α\alpha: The value of the best (highest-value) choice found so far by MAX along the path. Initialized to −∞-\infty.
  • β\beta: The value of the best (lowest-value) choice found so far by MIN along the path. Initialized to +∞+\infty.
  • Pruning Condition: Prune the remaining sub-branches whenever:
    α≥β\alpha \ge \beta

◇3. Decision Tree Learning (ID3 Algorithm)

  • Entropy H(S)H(S): Measures impurity of set SS:
    H(S)=−∑i=1cpilog⁡2(pi)H(S) = - \sum_{i=1}^c p_i \log_2(p_i)
  • Information Gain IG(S,A)IG(S, A): Expected entropy reduction from partitioning on attribute AA:
    IG(S,A)=H(S)−∑v∈Values(A)∣Sv∣∣S∣H(Sv)IG(S, A) = H(S) - \sum_{v \in \text{Values}(A)} \frac{|S_v|}{|S|} H(S_v)
    ID3 greedily splits on the attribute with the highest Information Gain!

◇4. High-Yield Exam Checklist

  • Is an admissible heuristic allowed to overestimate the cost to the goal? NO, never (h(n)≤h∗(n)h(n) \le h^*(n)).
  • In Minimax, whose turn updates α\alpha? MAX updates α\alpha; MIN updates β\beta.
  • What is the entropy of a completely pure dataset (all positive or all negative)? Exactly 0.
  • What is the entropy of an evenly split binary dataset (50% positive, 50% negative)? Exactly 1.0.
  • Does Value Iteration guarantee convergence in discounted infinite-horizon MDPs? YES, by Banach Fixed-Point Theorem.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

If a heuristic function h(n)h(n) satisfies h(n)≤c(n,a,n′)+h(n′)h(n) \le c(n, a, n') + h(n') for every node nn and successor n′n', the heuristic is:

Q2

In an adversarial game tree, a MIN node evaluates a child that returns a score of 4. If the parent MAX node currently has an α\alpha value of 5, what should happen?

Q3

Given a dataset of 8 positive examples and 8 negative examples, what is the initial Entropy H(S)H(S)?

Q4

In A* graph search, what is the evaluation function f(n)f(n)?

Q5

Which unsupervised algorithm iteratively assigns points to the closest centroid and recalculates centroids as the arithmetic mean of assigned points?